package com.iemp.exception.entity.base;

public abstract class AbstractStateException extends RuntimeException {

    protected int state;

    public AbstractStateException(String message) {
        super(message);
        state = -1;
    }

    public int getState() {
        return state;
    }


    @Override
    public String toString() {
        return "ExceptionWithState{" +
                "state=" + state +
                ", message='" + this.getMessage() + '\'' +
                "}";
    }
}
